package com.sztx.pay.center.dataaccess.dao.mysql;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sztx.pay.center.dataaccess.domain.SettleRuleIndexDO;
import com.sztx.pay.center.dataaccess.domain.SettleRulePersonalDO;
import com.sztx.pay.center.dataaccess.domain.SettleRulePersonalListDO;
import com.sztx.se.dataaccess.mysql.BaseMysqlDAO;
import com.sztx.se.dataaccess.mysql.config.PageQuery;

public interface SettleRulePersonalMysqlDAO extends BaseMysqlDAO<SettleRulePersonalDO> {
	
	public List<SettleRulePersonalDO> getRule(SettleRulePersonalDO settleRulePersonalDO);
    
	public Integer save(SettleRulePersonalDO settleRulePersonalDO);
	
	public Integer batchSave(List<SettleRulePersonalDO> settleRulePersonalDOS);
	
	public int update(@Param("settleRulePersonalDO") SettleRulePersonalDO settleRulePersonalDO);
	
	public int cancel(@Param("settleRulePersonalDO") SettleRulePersonalDO settleRulePersonalDO);
	
	public List<SettleRulePersonalListDO> getRuleList(@Param("settleRulePersonalDO") SettleRulePersonalDO settleRulePersonalDO,@Param("ruleIndex")List<SettleRuleIndexDO> ruleIndex,@Param("pageQuery") PageQuery pageQuery);
	
	public Integer getRuleCount(@Param("settleRulePersonalDO")SettleRulePersonalDO settleRulePersonalDO);

	public List<SettleRuleIndexDO> getRuleIndex(@Param("settleRulePersonalDO")SettleRulePersonalDO settleRulePersonalDO,@Param("pageQuery") PageQuery pageQuery);
}